package com.yay.rental.ui;

import java.lang.ref.SoftReference;
import java.util.Collections;
import java.util.Map;
import com.yay.rental.util.LruCacheLinkedHashMap;
import android.app.Application;
import android.graphics.drawable.Drawable;


/**
 * Get Started!
 * @author team@getstarted.com.ua
 */
public class RentalApplication extends Application {
	private static RentalApplication instance; 
	private static Map<Object, SoftReference<Drawable>> drawableHashMap;

	
	public static RentalApplication getInstance() {
		return instance;
	}
	
	@Override
	public void onCreate() {
		super.onCreate();
		
		instance = this;
		drawableHashMap = Collections.synchronizedMap(new LruCacheLinkedHashMap(50));
	}
	
	public Map<Object, SoftReference<Drawable>> getDrawableHashMap() {
		return drawableHashMap;
	}
	
}
